<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <title></title>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <link rel="stylesheet" href="../../../component/elementUI/index.css" />
  <link rel="stylesheet" href="../../../style/index.css" />
  <link rel="stylesheet" href="../../../style/wangeditor.css" />
  <style>
    .upload_file.none .el-upload {
      display: none;
    }
  </style>
</head>

<body>
  <div id="app" v-cloak class="minWidth">
    <el-form :model="form" :rules="rules" ref="contract" inline-message="true" style="width: 100%">
      <div class="table_titel">
        <div class="titel">修改{{News_Label}}</div>
      </div>
      <el-descriptions :column="1" border size="small">
        <el-descriptions-item :label="News_Label+'标题'">
          <el-form-item prop="News_Name">
            <el-input :placeholder="'请输入'+News_Label+'标题'" v-model="form.News_Name" clearable></el-input>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item label="封面图">
          <el-form-item>
            <el-upload :limit="1" :file-list="fileList" :class="['upload_file', {'none': fileList?.length }]"
              list-type="picture-card" :before-upload="handleBeforeUpload" :on-remove="handleRemove">
              <i class="el-icon-plus"></i>
            </el-upload>
          </el-form-item>
        </el-descriptions-item>
        <el-descriptions-item :label="News_Label+'内容'">
          <el-form-item  prop="News_Main">
            <yl-text-editor v-model="form.News_Main" :placeholder="'在此处填写'+News_Label+'内容...'"></yl-text-editor>
          </el-form-item>
        </el-descriptions-item>
      </el-descriptions>
      <div style="height: 100px"></div>
      <el-form-item class="form-operation">
        <el-button @click="window.history.back()">返回</el-button>
        <el-button type="primary" :loading="loading" @click="submitForm('contract')">提交</el-button>
      </el-form-item>
    </el-form>
  </div>
  <script type="text/javascript" src="../../../utils/wangeditor.js"></script>
  <script type="text/javascript" src="../../../utils/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../utils/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../utils/vue.min.js"></script>
  <script type="text/javascript" src="../../../config/config.js"></script>
  <script type="text/javascript" src="../../../utils/compressor.js"></script>
  <script type="text/javascript" src="../../../component/elementUI/index.js"></script>
  <script type="text/javascript" src="../../../component/component.js"></script>
  <script type="text/javascript" src="../../../utils/utils.js"></script>
  <script type="text/javascript" src="./js/Edit.js"></script>
</body>

</html>